//
//  LSZGlobalVariable.h
//  PartyClassCloud
//
//  Created by 九酷 on 2018/8/13.
//  Copyright © 2018年 九酷. All rights reserved.
//

#ifndef LSZGlobalVariable_h
#define LSZGlobalVariable_h

//宽度和高度
#define ScreenWidth   [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight  [[UIScreen mainScreen] bounds].size.height

#define WidthScal750(width)   width*(ScreenWidth/750)
#define heightScal1334(height)  height*(ScreenHeight/1334)

#define WidthScal_320(width)   width*(ScreenWidth/320)
#define heightScal_568(height)  height*(ScreenHeight/568)

#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define arc4random_color RGBColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))

#define FONT_(size) [UIFont systemFontOfSize:size]

#define LSZTitleColor [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1]

#define NSStr(str) [NSString stringWithFormat:@"%@",str]
#define  NullStringjudgment(param) ([param isEqualToString:@"(null)"]||param == nil || [param isKindOfClass:[NSNull class]])||[param isEqualToString:@"<null>"]?@"":param

// 判断是否是iPhone X
#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)

// 状态栏高度
#define STATUS_BAR_HEIGHT (iPhoneX ? 44.f : 20.f)
// 导航栏高度
#define NAVIGATION_BAR_HEIGHT (iPhoneX ? 88.f : 64.f)
// tabBar高度
#define TAB_BAR_HEIGHT (iPhoneX ? (49.f+34.f) : 49.f)
// home indicator
#define HOME_INDICATOR_HEIGHT (iPhoneX ? 34.f : 0.f)

#define IS_OS_7_OR_LATER    ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)

#pragma mark - 主题色
#define themeColor [UIColor redColor]
#define dividerColor [UIColor colorWithRed:241/255.0 green:241/255.0 blue:241/255.0 alpha:1]
//颜色重
#define titleColorLSZ [UIColor colorWithRed:52/255.0 green:52/255.0 blue:52/255.0 alpha:1]
//颜色浅
#define lightColor [UIColor colorWithRed:140/255.0 green:140/255.0 blue:140/255.0 alpha:1]
#endif /* LSZGlobalVariable_h */
